/* 主容器样式 */
.gradio-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* 聊天区域 */
#chatbot {
    height: 700px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 消息气泡 */
.message {
    padding: 1rem;
    margin: 0.5rem;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    border-radius: 15px 15px 0 15px;
}

.bot-message {
    background-color: #f5f5f5;
    margin-right: auto;
    border-radius: 15px 15px 15px 0;
}

/* 输入区域 */
.input-area {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 按钮样式 */
.primary-button {
    background: linear-gradient(to right, #2196f3, #1976d2) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.primary-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 